<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="home.aspx.vb" Inherits="ICLI.home"  EnableViewStateMac="false" ViewStateEncryptionMode="Never"   EnableEventValidation ="false"%>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    <link href="estilo.css" rel="stylesheet" type="text/css" />
</head>
<body bottommargin="0" leftmargin="0" rightmargin="0" topmargin="0">
    <form id="form1" runat="server">
    <div>
       <%-- <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>--%>
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td valign="top" align="center">
                   <%-- <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>--%>
                    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" CssClass="Texto" DataKeyNames="IDNoticia" DataSourceID="AccessNoticias"
                        Width="95%" BorderStyle="None" GridLines="None" CellSpacing="1" PageSize="5">
                        <Columns>
                            <asp:TemplateField HeaderText="Not&#237;cias">
                                <HeaderStyle HorizontalAlign="Center" />
                                <ItemTemplate>
                                    <table border="0" cellpadding="0" cellspacing="0" height="40" width="100%">
                                        <tr>
                                            <td valign="top" width="20%" style="height: 14px">
                                                <asp:Label ID="lblIDNoticia" runat="server" Text='<%# Eval("IDNoticia") %>' Visible="False"></asp:Label>
                                    <asp:Label ID="lblData" runat="server" Text='<%# Eval("Data", "{0:dd/MM/yyyy}") %>'></asp:Label></td>
                                            <td style="text-align: left; height: 14px;" valign="top">
                                    <asp:Label ID="lblTitulo" runat="server" Text='<%# Eval("Titulo") %>' Font-Bold="True"></asp:Label></td>
                                            <td style="text-align: left; height: 14px;" valign="top">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="width: 100px">
                                            </td>
                                            <td style="text-align: left" valign="top">
                                                <asp:Label ID="lblManchete" runat="server" Text='<%# Eval("Manchete") %>'></asp:Label></td>
                                            <td style="text-align: right" valign="bottom">
                                                &nbsp;<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "VisualizaNoticia.aspx?IDnoticia=" & Eval("IDNoticia") %>'>Mais...</asp:HyperLink></td>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Left" />
                            </asp:TemplateField>
                        </Columns>
                        <AlternatingRowStyle BackColor="AliceBlue" />
                        <PagerStyle Font-Bold="True" Font-Size="Small" ForeColor="Black" />
                    </asp:GridView>
                    <asp:AccessDataSource ID="AccessNoticias" runat="server" DataFile="~/App_Data/Banco.mdb"
                        SelectCommand="SELECT * FROM [Noticias] ORDER BY [Data] DESC">
                    </asp:AccessDataSource>
                            <table border="0" cellpadding="0" cellspacing="0" style="height: 100%" width="95%">
                                <tr>
                                    <td style="text-align: left" valign="top">
                                    
                            <asp:DataList ID="DLInformativo" runat="server" RepeatColumns="3" RepeatDirection="Horizontal" Width="100%" OnItemDataBound="DLInformativo_ItemDataBound" CssClass="Texto">
                                <ItemTemplate>
                                    <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                        <tr>
                                            <td background="imagens/barraHome.gif" valign="middle" align="center" style="width: 228px; height: 16px">
                                                <asp:Label ID="Label1" runat="server" CssClass="Texto" Font-Bold="True" Text='<%# Eval("Titulo") %>'></asp:Label></td>
                                        </tr>
                                        <tr>
                                            <td style="text-align: justify; width: 228px; height: 170px;" valign="top">
                                            <div id="Conteudo" runat="server" class="Texto" >    
                                               <%# Eval("Conteudo") %>
                                            </div>
                                            </td>
                                        </tr>
                                        <tr>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                            </asp:DataList></td>
                                </tr>
                            </table>
        <%--                </ContentTemplate>
                    </asp:UpdatePanel>--%>
                </td>
                <td align="right" style="text-align: right; width: 153px;" valign="top">
                    <asp:DataList ID="DataList1" runat="server" Height="50px" HorizontalAlign="Right">
                        <ItemTemplate>
                            <asp:HyperLink ID="HyperLink2" runat="server" Height="50px" ImageUrl='<%# Eval("Img") %>'
                                NavigateUrl='<%# Eval("URL") %>' Width="150px">[HyperLink2]</asp:HyperLink>
                        </ItemTemplate>
                    </asp:DataList></td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
